from random import *

secretNumber = randint(1, 100)
# print(secretNumber)
print('Guess a number from 1 to 100。')
print('start:')
for i in range(1, 7):
    try:
        guess = int(input())
    except ValueError:
        print('wrong！')
    finally:
        if guess < secretNumber:
            print('could be higher！')
        elif guess > secretNumber:
            print('could be smaller！')
        else:
            break

if guess == secretNumber:
    print('Success！')
else:
    print('unfortunately the chance is limited, the right number is:', str(secretNumber))
